package entities;

import java.util.LinkedList;
import java.util.List;

public class Course {
	private int id;
	private String name = null;
	private String description = null;
	private int credits = 0;
	private int capacity = 0;
	private int taken = 0;
	private int groupId = 0;
	private List<Session> sessions = new LinkedList<Session>();
	private int creator = 0;

	public Course() {
	}

	public Course(int id, String name, String description, int credits,
			int capacity, int groupId, int creator) {
		super();
		this.setId(id);
		this.setName(name);
		this.setDescription(description);
		this.setCredits(credits);
		this.setCapacity(capacity);
		this.setGroupId(groupId);
		this.setCreator(creator);
	}
	

	public Course(int id, String name, String description, int credits,
			int capacity, int groupId, List<Session> sessions, int creator) {
		super();
		this.setId(id);
		this.setName(name);
		this.setDescription(description);
		this.setCredits(credits);
		this.setCapacity(capacity);
		this.setGroupId(groupId);
		this.setSessions(sessions);
		this.setCreator(creator);
	}
	
	public void setId(int id) {
		this.id = id;
	}

	public int getId() {
		return id;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public String getName() {
		return name;
	}

	public void setCredits(int credits) {
		this.credits = credits;
	}

	public int getCredits() {
		return credits;
	}

	public void setCapacity(int capacity) {
		this.capacity = capacity;
	}

	public int getCapacity() {
		return capacity;
	}

	public void setGroupId(int groupId) {
		this.groupId = groupId;
	}

	public int getGroupId() {
		return groupId;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getDescription() {
		return description;
	}

	public void setSessions(List<Session> sessions) {
		this.sessions = sessions;
	}

	public List<Session> getSessions() {
		return sessions;
	}

	public void setTaken(int taken) {
		this.taken = taken;
	}

	public int getTaken() {
		return taken;
	}

	public void setCreator(int creator) {
		this.creator = creator;
	}

	public int getCreator() {
		return creator;
	}

}
